import request from '@/utils/request'

export default {
  //条件分页查询课程
  getCourseList (courseBody) {
    return request({
      url: `/eduservice/coursefront/getCourseFrontList`,
      method: 'post',
      data: courseBody
    })
  },

  //获取一二级分类
  getSubjetList () {
    return request({
      url: `/eduservice/subject/getSubjectList`,
      method: 'get',
    })
  },



  // -----------  :id
  //获取课程详细信息
  getCourseDetailInfo (courseId) {
    return request({
      url: `/eduservice/coursefront/getCourseDetailInfo/${courseId}`,
      method: 'get',
    })
  }
}